package com.jiangSheng.mall.app.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jiangSheng.mall.app.bean.Goods;
import com.jiangSheng.mall.app.dao.GoodsMapper;
import com.jiangSheng.mall.app.services.GoodsServices;

@Transactional
@Service
public class GoodsServicesImpl implements GoodsServices{
	
	@Autowired
	private GoodsMapper goodsDao;

	@Override
	public List<Goods> listAll() {
		return goodsDao.listAll();
	}

	@Override
	public List<Goods> goodsList(Integer pageNum, Integer pageSize) {
		return goodsDao.goodsList();
	}

	@Override
	public int save(Goods goods) {
		return goodsDao.save(goods);
	}

	@Override
	public int move(Integer id) {
		return goodsDao.move(id);
	}


}
